import { http } from '@/api/http/request'
import { API_URLS } from "@/api/constants/api-url";

export const getFilesList = (params: any) => {
  return http.get(API_URLS.GET_FILE_LIST)
}
export const getFileDetail = (id: string) => {
  return http.get(API_URLS.GET_FILE_DETAIL + '/' + id)
}
export const deleteFile = (id: string) => {
  return http.delete(API_URLS.DELETE_FILE + '/' + id)
}
export const createFile = (data: any) => {
  return http.post(API_URLS.CREATE_FILE, data)
}
export const updateFile = (id: string, data: any) => {
  return http.put(API_URLS.UPDATE_FILE + '/' + id, data)
}
